import random
from matplotlib import pyplot as plt

plt.figure(figsize=(20, 8), dpi=80)

y = [random.randint(20, 35) for i in range(120)]
x = range(1, 121)

plt.plot(x, y)
_xticks_labels = ["hello {}".format(i) for i in x]
plt.xlabel("hahaha")
plt.xticks(x, _xticks_labels, rotation=90)  # rotation代表了选择角度,旋转刻度的角度

plt.show()
